package com.tzxs.pay.main.bill.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class AutOrderBean {


    private int code;
    private String status;
    private String msg;
    private BillAutBean x_data;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BillAutBean getX_data() {
        return x_data;
    }

    public void setX_data(BillAutBean x_data) {
        this.x_data = x_data;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }


    public static class DataBean implements AutBillImp, Parcelable {
        /**
         * id : 6797
         * out_order_no : fu2018042118090736581
         * out_request_no : f2018042118090736581
         * goodsid : 1002
         * store_id : w1486714902
         * merchant_id : 12
         * order_title :
         * type : 905
         * pre_auth_type : AUTH
         * amount : 0.02
         * ya_amount : 0.01
         * pay_amount : 0.01
         * hb_fq_num :
         * hb_fq_seller_percent :
         * hb_fq_sxf :
         * buyer_id :
         * status : WX_SUCCESS
         * remark : 消费0.01元,0.01元(最迟将在12个小时后自动退回)
         * fu_remark : 房号或身份证-或其它重要信息
         * pay_status : 4
         * cost_rate :
         * service_rate :
         * auth_no : 4200000070201804213296135120
         * payer_logon_id : 微信用户
         * payer_user_id :
         * operation_id :
         * unfreeze_status :
         * cancel_status :
         * created_at : 2018-04-21 18:09:09
         * updated_at : 2018-04-23 09:12:16
         * pay_type : weixin
         */

        private int id;
        private String out_order_no;
        private String out_request_no;
        private String goodsid;
        private String store_id;
        private int merchant_id;
        private String order_title;
        private int type;
        private String pre_auth_type;
        private String amount;
        private String ya_amount;
        private String pay_amount;
        private String hb_fq_num;
        private String hb_fq_seller_percent;
        private String hb_fq_sxf;
        private String buyer_id;
        private String status;
        private String remark;
        private String fu_remark;
        private int pay_status;
        private String cost_rate;
        private String service_rate;
        private String auth_no;
        private String payer_logon_id;
        private String payer_user_id;
        private String operation_id;
        private int unfreeze_status;
        private String cancel_status;
        private String created_at;
        private String updated_at;
        private String pay_type;

        protected DataBean(Parcel in) {
            id = in.readInt();
            out_order_no = in.readString();
            out_request_no = in.readString();
            goodsid = in.readString();
            store_id = in.readString();
            merchant_id = in.readInt();
            order_title = in.readString();
            type = in.readInt();
            pre_auth_type = in.readString();
            amount = in.readString();
            ya_amount = in.readString();
            pay_amount = in.readString();
            hb_fq_num = in.readString();
            hb_fq_seller_percent = in.readString();
            hb_fq_sxf = in.readString();
            buyer_id = in.readString();
            status = in.readString();
            remark = in.readString();
            fu_remark = in.readString();
            pay_status = in.readInt();
            cost_rate = in.readString();
            service_rate = in.readString();
            auth_no = in.readString();
            payer_logon_id = in.readString();
            payer_user_id = in.readString();
            operation_id = in.readString();
            unfreeze_status = in.readInt();
            cancel_status = in.readString();
            created_at = in.readString();
            updated_at = in.readString();
            pay_type = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOut_order_no() {
            return out_order_no;
        }

        public void setOut_order_no(String out_order_no) {
            this.out_order_no = out_order_no;
        }

        public String getOut_request_no() {
            return out_request_no;
        }

        public void setOut_request_no(String out_request_no) {
            this.out_request_no = out_request_no;
        }

        public String getGoodsid() {
            return goodsid;
        }

        public void setGoodsid(String goodsid) {
            this.goodsid = goodsid;
        }

        public String getStore_id() {
            return store_id;
        }

        public void setStore_id(String store_id) {
            this.store_id = store_id;
        }

        public int getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(int merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getOrder_title() {
            return order_title;
        }

        public void setOrder_title(String order_title) {
            this.order_title = order_title;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getPre_auth_type() {
            return pre_auth_type;
        }

        public void setPre_auth_type(String pre_auth_type) {
            this.pre_auth_type = pre_auth_type;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getYa_amount() {
            return ya_amount;
        }

        public void setYa_amount(String ya_amount) {
            this.ya_amount = ya_amount;
        }

        public String getPay_amount() {
            return pay_amount;
        }

        public void setPay_amount(String pay_amount) {
            this.pay_amount = pay_amount;
        }

        public String getHb_fq_num() {
            return hb_fq_num;
        }

        public void setHb_fq_num(String hb_fq_num) {
            this.hb_fq_num = hb_fq_num;
        }

        public String getHb_fq_seller_percent() {
            return hb_fq_seller_percent;
        }

        public void setHb_fq_seller_percent(String hb_fq_seller_percent) {
            this.hb_fq_seller_percent = hb_fq_seller_percent;
        }

        public String getHb_fq_sxf() {
            return hb_fq_sxf;
        }

        public void setHb_fq_sxf(String hb_fq_sxf) {
            this.hb_fq_sxf = hb_fq_sxf;
        }

        public String getBuyer_id() {
            return buyer_id;
        }

        public void setBuyer_id(String buyer_id) {
            this.buyer_id = buyer_id;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getFu_remark() {
            return fu_remark;
        }

        public void setFu_remark(String fu_remark) {
            this.fu_remark = fu_remark;
        }

        public int getPay_status() {
            return pay_status;
        }

        public void setPay_status(int pay_status) {
            this.pay_status = pay_status;
        }

        public String getCost_rate() {
            return cost_rate;
        }

        public void setCost_rate(String cost_rate) {
            this.cost_rate = cost_rate;
        }

        public String getService_rate() {
            return service_rate;
        }

        public void setService_rate(String service_rate) {
            this.service_rate = service_rate;
        }

        public String getAuth_no() {
            return auth_no;
        }

        public void setAuth_no(String auth_no) {
            this.auth_no = auth_no;
        }

        public String getPayer_logon_id() {
            return payer_logon_id;
        }

        public void setPayer_logon_id(String payer_logon_id) {
            this.payer_logon_id = payer_logon_id;
        }

        public String getPayer_user_id() {
            return payer_user_id;
        }

        public void setPayer_user_id(String payer_user_id) {
            this.payer_user_id = payer_user_id;
        }

        public String getOperation_id() {
            return operation_id;
        }

        public void setOperation_id(String operation_id) {
            this.operation_id = operation_id;
        }

        public int getUnfreeze_status() {
            return unfreeze_status;
        }

        public void setUnfreeze_status(int unfreeze_status) {
            this.unfreeze_status = unfreeze_status;
        }

        public String getCancel_status() {
            return cancel_status;
        }

        public void setCancel_status(String cancel_status) {
            this.cancel_status = cancel_status;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public String getPay_type() {
            return pay_type;
        }

        public void setPay_type(String pay_type) {
            this.pay_type = pay_type;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public boolean equals(Object obj) {
            return obj instanceof DataBean && ((DataBean) obj).id == this.id;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(out_order_no);
            dest.writeString(out_request_no);
            dest.writeString(goodsid);
            dest.writeString(store_id);
            dest.writeInt(merchant_id);
            dest.writeString(order_title);
            dest.writeInt(type);
            dest.writeString(pre_auth_type);
            dest.writeString(amount);
            dest.writeString(ya_amount);
            dest.writeString(pay_amount);
            dest.writeString(hb_fq_num);
            dest.writeString(hb_fq_seller_percent);
            dest.writeString(hb_fq_sxf);
            dest.writeString(buyer_id);
            dest.writeString(status);
            dest.writeString(remark);
            dest.writeString(fu_remark);
            dest.writeInt(pay_status);
            dest.writeString(cost_rate);
            dest.writeString(service_rate);
            dest.writeString(auth_no);
            dest.writeString(payer_logon_id);
            dest.writeString(payer_user_id);
            dest.writeString(operation_id);
            dest.writeInt(unfreeze_status);
            dest.writeString(cancel_status);
            dest.writeString(created_at);
            dest.writeString(updated_at);
            dest.writeString(pay_type);
        }
    }
}
